$(function () {
    window.onload = function () {
        $.ajax({
            url: 'http://localhost:3000/play/new',
            type: 'get',
            success: function (res) {
                var str = '';
                $.each(res, function (i, item) {
                    $.each(item, function (j, g) {
                        str += `
                         <li>
                            <img src="${g.img}">
                            <p>
                               ${g.text}
                            </p>
                            <p style="margin-top:10px ;">
                                ${g.price}<span><img src="../CSS/img/zan.png">3 &nbsp;<img
                                    src="../CSS/img/reply.png">3</span>
                            </p>
                        </li>
                        `;
                    })
                })
                $('.nei2-bottom>ul').html(str);
            }
        })
    }
    $('.more').click(function () {
        $('.kuanZhong').css('height', 1870);
        $('.more').css('display', 'none');
    });
})